package com.billdowney.entity.base;

import java.io.Serializable;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

import io.swagger.annotations.ApiModelProperty;

/**
 * @ClassName: BaseEntityUUIDHex
 * @Description: 数据库自动生成id
 * @author 超级小富翁 - BillDowney
 * @date 2018年3月8日 下午10:41:53
 */
@MappedSuperclass
public class BaseEntityIdByDatabaseAuto extends BaseEntityProperty implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@ApiModelProperty(value = "id", notes = "自增长id")
	private long id;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}
}
